#include "MenuManager.h"
#include "../SGD Wrappers/CSGD_TextureManager.h"

CMenuManager* CMenuManager::GetInstance(void)
{
	static CMenuManager s_Instance;
	return &s_Instance;
}

CMenuManager::CMenuManager(void)
{
	m_nPointerImgID		= CSGD_TextureManager::GetInstance()->LoadTexture(_T("Resources/Graphics/Pointer.png"), D3DCOLOR_ARGB(255, 255, 255, 255) );
}


CMenuManager::~CMenuManager(void)
{
}

void CMenuManager::AddMenu(MenuState* state)
{
	menus.push_back(state);
}
void CMenuManager::GoBack()
{
	menus.pop_back();
}
MenuState* CMenuManager::PlayBack()
{
	return menus.back();
}